<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <title><jsp:include page="template.jsp"><jsp:param name="name" value="网站名称"/></jsp:include></title>
    <link rel="icon" type="image/png" href='<jsp:include page="template.jsp"><jsp:param name="name" value="logo"/></jsp:include>'>
    <%@include file="../../resources/inc/head.jsp" %>
    <style>
        .layui-layout-admin .layui-header .layui-nav .layui-this:after, .layui-layout-admin .layui-header .layui-nav-bar {
            height: 2px;
            background-color: #5FB878;
        }
    </style>
</head>
<body class="layui-layout-body">

<div id="LAY_app">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <!-- 头部区域 -->
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item layadmin-flexible" lay-unselect>
                    <a href="javascript:;" layadmin-event="flexible" title="收缩 ">
                        <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
                    </a>
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a href="javascript:;" layadmin-event="refresh" title="刷新">
                        <i class="layui-icon layui-icon-refresh-3"></i>
                    </a>
                </li>
            </ul>
            <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right" style="margin-right: 20px">

                <li class="layui-nav-item" lay-unselect>
                    <a href="javascript:;">
                        <cite>${sessionScope.permissionUser.realName}</cite>
                    </a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a lay-href="<%=basePath%>manager/permission/user/personData/${sessionScope.permissionUser.id}.action">基本信息</a>
                        </dd>
                        <dd><a lay-href="<%=basePath%>manager/permission/user/alterPassword.action">修改密码</a></dd>
                        <hr>
                        <dd layadmin-event="logout" style="text-align: center;" id="logoutid"><a>退出</a></dd>

                    </dl>
                </li>
                <li class="layui-nav-item layui-hide-xs" lay-unselect>
                   &nbsp;
                </li>
            </ul>
        </div>
        <div class="layui-side layui-side-menu">
            <div class="layui-side-scroll">
                <div class="layui-logo" lay-href="<%=basePath%>manager/system/systemSetting/index.action">
                    <span id="system_title">Expect-X官网</span>
                </div>
                <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">

                    <li data-name="home" class="layui-nav-item">
                        <a href="javascript:;" lay-href="<%=basePath%>manager/system/systemSetting/index.action" lay-tips="系统设置" lay-direction="2">
                            <i class="layui-icon layui-icon-home"></i>
                            <cite>系统设置</cite>
                        </a>
                    </li>
                    <li data-name="home" class="layui-nav-item">
                        <a href="javascript:;" lay-href="<%=basePath%>manager/system/systemTypeGroup/index.action" lay-tips="数据字典" lay-direction="2" >
                            <i class="layui-icon layui-icon-home"></i>
                            <cite>数据字典</cite>
                        </a>
                    </li>
                   <%-- <li data-name="home" class="layui-nav-item">
                        <a href="javascript:;" lay-href="<%=basePath%>manager/permission/user/index.action" lay-tips="后台用户" lay-direction="2">
                            <i class="layui-icon layui-icon-home"></i>
                            <cite>后台用户</cite>
                        </a>
                    </li>--%>
                    <li data-name="home" class="layui-nav-item">

                    <dd><a lay-href="<%=basePath%>/manager/content/category/index.action"> <i class="layui-icon layui-icon-template-1"></i><cite>分类管理</cite></a></dd>
                    </li>
                    <li data-name="home" class="layui-nav-item">
                            <dd><a lay-href="<%=basePath%>/manager/content/article/index.action?type=1"> <i class="layui-icon layui-icon-list"></i>
                                <cite>文章列表</cite></a></dd>
                    </li>
                    <li data-name="home" class="layui-nav-item">
                            <dd><a lay-href="<%=basePath%>/manager/content/article/index.action?type=2"><i class="layui-icon layui-icon-group"></i> <cite>我们的客户</cite></a></dd>
                    </li>
                    <li data-name="home" class="layui-nav-item">
                            <dd><a lay-href="<%=basePath%>/manager/content/article/index.action?type=3"><i class="layui-icon layui-icon-vercode
    "></i> <cite>解决方案</cite></a></dd>
                    </li>
                    <li data-name="home" class="layui-nav-item">
                            <dd><a lay-href="<%=basePath%>/manager/content/article/index.action?type=4"><i class="layui-icon layui-icon-senior"></i><cite>软件与技术服务</cite></a></dd>
                    </li>
                    <li data-name="home" class="layui-nav-item">
                        <dd><a lay-href="<%=basePath%>/manager/customer/requirement/index.action"><i class="layui-icon layui-icon-user
"></i><cite>客户需求</cite></a></dd>
                    </li>

                </ul>
            </div>
        </div>
        <!-- 页面标签 -->
        <div class="layadmin-pagetabs" id="LAY_app_tabs">
            <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-down">
                <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;"></a>
                        <dl class="layui-nav-child layui-anim-fadein">
                            <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                            <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                            <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
            <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
                <ul class="layui-tab-title" id="LAY_app_tabsheader">
                    <li lay-id="<%=basePath%>manager/system/systemSetting/index.action"
                        lay-attr="<%=basePath%>manager/system/systemSetting/index.action" class="layui-this"><i
                            class="layui-icon layui-icon-home"></i></li>
                </ul>
            </div>
        </div>


        <!-- 主体内容 -->
        <div class="layui-body" id="LAY_app_body">
            <div class="layadmin-tabsbody-item layui-show">
                <iframe src="<%=basePath%>manager/system/systemSetting/index.action" frameborder="0" class="layadmin-iframe"></iframe>
            </div>
        </div>

        <!-- 辅助元素，一般用于移动设备下遮罩 -->
        <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
</div>
<%@include file="../../resources/inc/footer.jsp" %>
<script>
    layui.config({
        base: '<%=basePath%>resources/lib/layuiAdmin/' //静态资源所在路径
    }).extend({

        index: 'lib/index' //主入口模块
    }).use(['index'], function () {
        $ = layui.jquery;
        var $ = layui.$;
        var url=window.location.href;
       if(url.indexOf('?')<0){
           var setLanguage=cookie.get("language");
            if(setLanguage!=null){
                document.getElementById(setLanguage).click();
            }
       }
        $(".language").click(function(){
            var languageCode=$(this).attr("href").split('=')[1];
            cookie.set("language",languageCode,1);
        })

    });







    /**
     * cookie
     * @type {{set: cookie.set, get: (function(*): *), delete: cookie.delete}}
     */
    var cookie = {
        set: function (key, val, time) {//设置cookie方法
            var date = new Date(); //获取当前时间
            var expiresDays = time;  //将date设置为n天以后的时间
            date.setTime(date.getTime() + expiresDays * 24 * 3600 * 1000); //格式化为cookie识别的时间
            document.cookie = key + "=" + val + ";expires=" + date.toGMTString();  //设置cookie
        },
        get: function (key) {//获取cookie方法
            /*获取cookie参数*/
            var getCookie = document.cookie.replace(/[ ]/g, "");  //获取cookie，并且将获得的cookie格式化，去掉空格字符
            var arrCookie = getCookie.split(";")  //将获得的cookie以"分号"为标识 将cookie保存到arrCookie的数组中
            var tips;  //声明变量tips
            for (var i = 0; i < arrCookie.length; i++) {   //使用for循环查找cookie中的tips变量
                var arr = arrCookie[i].split("=");   //将单条cookie用"等号"为标识，将单条cookie保存为arr数组
                if (key == arr[0]) {  //匹配变量名称，其中arr[0]是指的cookie名称，如果该条变量为tips则执行判断语句中的赋值操作
                    tips = arr[1];   //将cookie的值赋给变量tips
                    break;   //终止for循环遍历
                }
            }
            return tips;
        },
        delete: function (key) { //删除cookie方法
            var date = new Date(); //获取当前时间
            date.setTime(date.getTime() - 10000); //将date设置为过去的时间
            document.cookie = key + "=v; expires =" + date.toGMTString();//设置cookie
        }
    }
</script>


</body>
</html>


